//
//  ToolHeader.h
//  LoanMoney
//
//  Created by gynjobs on 2017/8/28.
//  Copyright © 2017年 cangming. All rights reserved.
//

#ifndef ToolHeader_h
#define ToolHeader_h

/** 工具 **/
#import <AFNetworking.h>
#import <MJExtension.h>
#import <MJRefresh.h>
#import <SDWebImageManager.h>
#import <SDWebImage/UIImageView+WebCache.h>
#import <SDWebImage/UIButton+WebCache.h>
#import <SDWebImage/UIImage+GIF.h>
#import <IQKeyboardManager.h>
#import <Masonry.h>
#import <MBProgressHUD.h>
#import <MOBFoundation/MOBFoundation.h>
#import <ShareSDK/ShareSDK.h>

/** Base **/
#import "BaseCommondView.h"
#import "BaseCommondObject.h"
#import "BaseCommondNaviController.h"
#import "BaseCommondNavTool.h"
#import "BaseCommondViewController.h"
#import "BaseCommondTabbarController.h"
#import "CustomAlertView.h"
#import "EncryptRequestAction.h"
#import "EncryptAction.h"
#import "EncryptResponseAction.h"
#import "ClientApi.h"
#import "NotificationManager.h"
#import "GetJsonData.h"
#import "DataModle.h"
#import "LoadingAnimalView.h"
#import "GetDeviceMessageTool.h"
#import "ChangeRootViewTool.h"
/** cartory **/
#import "AFHTTPSessionManager+log.h"
#import "AFHTTPSessionManager+RequestField.h"
#import "NSArray+Extension.h"
#import "NSData+Encryption.h"
#import "NSDictionary+Extension.h"
#import "NSObject+ModelCaches.h"
#import "NSString+HLQRegex.h"
#import "NSString+MD5.h"
#import "UIColor+EXUTenColor.h"
#import "UIDevice+Additions.h"
#import "UIImage+Tools.h"
#import "UIImage+Stretch.h"
#import "UIViewController+HLQBackButtonHandle.h"


/** 设置 **/
/***  好融使用 以下宏进行适配*/
//宽度适配：eg:设计图120px ---> 适配代码：RealValueW(120*0.5)
#define RealValueW(width) (width)*kWidth/375.0
//高度适配同上
#define RealValueH(height) (height)*kHeight/667.0 //高度适配



#define ISDEBUG

/*** 自定义log **/
#ifdef ISDEBUG
#define GYNLog(format, ...) printf("\n [%s] %s [第%d行] %s\n", __TIME__, __FUNCTION__, __LINE__, [[NSString stringWithFormat:format, ## __VA_ARGS__] UTF8String]);
#else
#define GYNLog(...)
#endif

//按比例计算高度
#define    R_Y_H(obj)  ((WINSIZEHEIGHT > 667) ? (WINSIZEHEIGHT * ((obj)/2) / 667) :((obj)/2))
// (WINSIZEHEIGHT * ((obj)/2) / 667)
//按比例计算宽度
#define    R_Y_W(obj)  (WINSIZEWIDTH * ((obj)/2) / 375)


#define IS_SCREEN_35_INCH [UIDevice isiPhone4]
#define kWidth [UIScreen mainScreen].bounds.size.width
#define kHeight [UIScreen mainScreen].bounds.size.height
#define SINGLE_LINE_WIDTH           (1/[UIScreen mainScreen].scale)
#define KNotifiCationCenter [NSNotificationCenter defaultCenter]
/** weakSelf **/
#define WS(weakSelf)  __weak __typeof(&*self)weakSelf = self;
#define KCurrentDevice [UIDevice currentDevice]
#define IOS10_OR_LATER		( [[KCurrentDevice systemVersion] compare:@"10.0"] != NSOrderedAscending )

#define IOS9_OR_LATER ( [[KCurrentDevice systemVersion] compare:@"9.0"] != NSOrderedAscending )
/*** 自定义log **/
#define ISLOGIN @"isLogin"


/** Config **/
//APPConfig
#define APP_NO @583
#define TYPE_NO @15

#endif /* ToolHeader_h */
